﻿<%@ Page Language="C#" MasterPageFile="~/Workflow/MasterPage/List2.Master" AutoEventWireup="true" Inherits="WorkFlow_WFConfigure_WFBuInterfaceList" Title="Untitled Page" Codebehind="WFBuInterfaceList.aspx.cs" %>

<%@ Import Namespace="Honestysoft.Workflow.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">	
<table width="100%"  border="0" cellspacing="0" cellpadding="6">
  <tr>
    <td>
<ul id="maintab" class="shadetabs">
<li ><a href="<%=WorkflowApply.Home %>WorkFlow/WFConfigure/WFBillMain.aspx?ID=<%=Request["ID"] %>" >详细信息</a></li><li class="selected"><a href="#default"  >业务接口</a></li></ul>

<div id="ajaxcontentarea" class="contentstyle" >

<table width="100%"  border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td><div align="right" >    
      <asp:Button ID="btnActive" Text="激 活" style="display:none"   runat="server" OnClick="btnActive_Click"  class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
      <asp:Button ID="btnCancel" Text="作 废" style="display:none"    runat="server" OnClick="btnCancel_Click"  class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
      <asp:Button ID="btnResume" Text="恢 复"  style="display:none"   runat="server" OnClick="btnResume_Click"  class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
    <input type="button" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" onclick='javascript:openDialog("<%=WorkflowApply.Home%>WorkFlow/WFConfigure/WFBuInterfaceEdit.aspx?BillID=<%=Request["ID"] %>",400,200,"新增业务接口")' name="Submit" value="新 增" />
      <asp:Button ID="btnDel" Text="删 除" OnClick="btnDel_Click"  class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" OnClientClick="return getNoSelectionAlert('chkID','请选择要删除的记录！');"   runat="server" />
      
    </div></td>
  </tr>
</table>

<table width="100%"  border="0" cellpadding="3" cellspacing="3" id="label_main">
  <tr><td>
    
    <table width="100%"  border="1" cellspacing="0" cellpadding="1" class="t1" id="tGrid">
  <thead>
    <th style="width:30px" align="center" >
        <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:checkAll(this,"chkID")' />
    </th>
    <th style="width:60px" align="center">版本号</th>
    <th align="center">接口名称</th>
    <th align="center">采用流程模板</th>
    <th style="width:80px" align="center">接口状态</th>
    <th style="width:80px" align="center">操作</th>
  </thead>
  <asp:Repeater ID="Repeater1" runat="server" >
  <ItemTemplate>
  <tr>
    <td align="center" >
        <input type="checkbox" name="chkID" id="chk<%# DataBinder.Eval(Container.DataItem,"ID") %>"  value="<%# DataBinder.Eval(Container.DataItem,"ID") %>" >
    </td>
    <td align="center"><%# DataBinder.Eval(Container.DataItem,"Version") %></td>    
    <td align="left"><%# DataBinder.Eval(Container.DataItem,"BuName") %></td>    
    <td align="left"><%# ((WF_BuInterface)Container.DataItem).WFJobTemplate.Name%></td>
    <td align="center"><%# WFPublicFun.GetEnumText(typeof(WFEnumData.JobTempState), DataBinder.Eval(Container.DataItem, "Status") + "")%></td>
    <td align="center">
        <%# GetLinkButton(DataBinder.Eval(Container.DataItem, "ID") + "", DataBinder.Eval(Container.DataItem, "Status")+"")%>
    </td>
  </tr>  
  </ItemTemplate>
  </asp:Repeater>
</table>
    
</td></tr></table>

</div>

</td>
  </tr>
</table>
</asp:Content>


